package issr.market.init;

import javax.servlet.ServletContext;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;

import org.apache.log4j.Logger;

/**
 * Servlet implementation class ServletInit
 */
@WebServlet("/ServletInit")
public class ServletInit extends HttpServlet {
	
	private Logger logger = Logger.getLogger(ServletInit.class);
	
	private static final long serialVersionUID = 1L;
       
    public void init(){
    	
    	try{
	    	ServletContext context = getServletContext();
	    	Configuration.init(context, context.getRealPath("/WEB-INF/config/issr.properties"));
    	}
    	catch(Exception e){
    		e.printStackTrace();
    		logger.error(e, e);
    	}
    }
}
